<%--
  Created by IntelliJ IDEA.
  User: Kang Hai
  Date: 2020/9/27
  Time: 9:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加用户</title>
    <script src="../js/userlist.js"></script>
    <style>
        #form-control{
            margin: 0px auto;
            width: 1010px;
            height: 720px;
            border: 3px solid rgb(235,238,245);
        }
        form{
            width: 500px;
            height: 720px;
            float: left;
        }
        .form-control{
            width: 200px;
        }
        #submit{
            display: none;
        }
    </style>
</head>
<body>
<div class="container-fluid">
    <form class="form-control" id="user_add">
        <input type="hidden" id="method" value="useradd">
        <h3>添加用户：</h3>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">用户名称</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="name" placeholder="请输入">
            </div>
        </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">用户邮箱</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="email" placeholder="请输入">
                </div>
            </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">用户密码</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="password" placeholder="请输入">
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">手机号码</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="phone" placeholder="请输入">
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">头像上传</label>
            <div class="col-sm-10">
                <input type="file" id="picture">
            </div>
        </div>
        <div class="form-group" >
            <div class="col-sm-offset-2 col-sm-10">
                <button type="button" class="btn btn-default">提交</button>
            </div>
        </div>
    </form>
</div>
<script>
    $(document).ready(function () {
        add();
        $("button").click(function(){
            var user = $("#user_add").val()
        })
        $("#submit").click(function(){
            sumbmit();
        });
    })
</script>
</body>
</html>
